package com.bigpang.framework.redis.subscribe;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPubSub;

/**
 * @Author YongQiang
 * @Date 2021/6/9 11:11
 * @Version 1.0
 */
public class RedisPub {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("10.130.132.137",6379);
        jedis.publish("channel","message2");
        jedis.close();
    }
}
